//2009/08/21 11:11:37
#include <iostream>
#include <string>
#include <vector>
#include <map>
#include <queue>
#include <sstream>
#include <algorithm>

using namespace std;

class SalaryCalculator
{
public:
    double calcHours(int P1, int P2, int salary)
    {
		int a = P1 * 200;
		if(salary <= a) return 1.0 * salary / P1;
		return 1.0 * (salary - a) / P2 + 200.0;
    }
};
